package _16_chainOfResponsibility_pattern.v2_0;

/**
 * @Description:
 * @Auther: 2019/6/25 10:30 by zhang.jy
 */
public class Son extends Handler {
	//儿子只处理母亲的请求
	public Son() {
		super(Handler.SON_LEVEL_REQUEST);
	}

	//儿子的答复
	@Override
	protected void response(IWomen women) {
		System.out.println("--------母亲向儿子请示-------");
		System.out.println(women.getRequest());
		System.out.println("儿子的答复是：同意\n");
	}
}